package com.jinzhi.jzweb.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.BaseDao;
import com.jinzhi.jzapi.certificate.pojo.MyOrgRolesVo;
import com.jinzhi.jzapi.certificate.pojo.OrgRolesListVo;
import com.jinzhi.jzweb.domain.OrganizationRolesDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 机构角色表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
public interface OrganizationRolesDao extends BaseDao<OrganizationRolesDO> {

    List<OrgRolesListVo> dyGetUserList(Page<OrgRolesListVo> page, Map map);

    List<MyOrgRolesVo> selByUserId(Page<MyOrgRolesVo> page, @Param("userId") Long userId);

    Long selById(Map map);

    List<Map<Object,Object>> selByRoleType(@Param("roleType") Integer roleType);

    List<Map> selByRoleProvince(Map map);

    int selNoReviewAll();

    String selByIdProName(Map map);
    //查询全部列表数据
    List<Map> orgRolesListX();
    //修改
    //修改成阿里云OSS路径
    int updateorgRolesX(@Param("enclosure") String enclosure, @Param("id") String id);

}

